package com.atguigu.tingshu.live.service;

import com.atguigu.tingshu.model.live.LiveRoom;
import com.atguigu.tingshu.vo.live.LiveRoomVo;
import com.baomidou.mybatisplus.extension.service.IService;

public interface LiveRoomService extends IService<LiveRoom> {
    /**
     * 获取到直播间信息
     * @param userId
     * @return
     */
    LiveRoom getCurrentLive(Long userId);

    /**
     * 创建直播间
     * @param liveRoomVo
     * @param userId
     * @return
     */
    LiveRoom saveLiveRoom(LiveRoomVo liveRoomVo, Long userId);
}
